home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / DRVLIB.NIC / HPVGP / OEMSETUP.INF < prev   
Encoding:
INI File  |  1996-07-31  |  52.2 KB  |  1,371 lines

  1. ;
  2. ;--------------------------------------------------------------------------
  3. ; OEMSETUP File for HP PCI 10/100 Adapters
  4. ;--------------------------------------------------------------------------
  5. ;
  6. [Identify]
  7.  
  8.     set !G:DebugOutputControl = 1
  9.     Debug-Output "HPVGPCI: Identify."
  10.     read-syms Identification
  11.     set Status     = STATUS_SUCCESSFUL
  12.     set Identifier = $(OptionType)
  13.     set Media      = #("Source Media Descriptions", 1, 1)
  14.     Return $(Status) $(Identifier) $(Media)
  15.  
  16. [Identification]
  17.     OptionType = NetAdapter
  18.  
  19. [PlatformsSupported]
  20.     PCI
  21.  
  22. [Options]
  23. J2585A
  24. J2585B
  25. J2973A
  26. J2970A
  27.  
  28. [FileConstants]
  29. UtilityInf      = "UTILITY.INF"
  30. ParamInf        = "NCPARAM.INF"
  31. subroutineinf   = "SUBROUTN.INF"
  32. SoftwareType    = "driver"
  33. Exit_Code       = 0
  34. DialogDllName   = "hpvg1dlg.dll"
  35. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  36. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  37. Manufacturer    = "Hewlett-Packard"
  38. ProductMajorVersion     = "3"
  39. ProductMinorVersion     = "0"
  40. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  41. ProductSoftwareName     = "Hpddnd3"
  42. ProductSoftwareTitle    = "HP DeskDirect 10/100 LAN Adapter Driver"
  43. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\hpddnd3.sys"
  44. NetRuleSoftwareType     = "Hpddnd3Sys ndisDriver Hpddnd3Driver"
  45. NetRuleSoftwareUse      = $(SoftwareType)
  46. NetRuleSoftwareBindForm = """Hpddnd3Sys"" yes no container"
  47. NetRuleSoftwareClass    = {"Hpddnd3Driver basic"}
  48. NetRuleSoftwareBindable = {"Hpddnd3Driver Hpddnd3Adapter non exclusive 100"}
  49. ProductHardwareName     = "Hpddnd3"
  50.  
  51. ProductHardwareJ2585AIOTitle   = "HP J2585A"
  52. ProductHardwareJ2585ATitle = "HP J2585A"
  53. J2585ACFID = 4144
  54.  
  55. ProductHardwareJ2585BIOTitle   = "HP J2585B"
  56. ProductHardwareJ2585BTitle = "HP J2585B"
  57. J2585BCFID = 4145
  58.  
  59. ProductHardwareJ2973AIOTitle   = "HP J2973A"
  60. ProductHardwareJ2973ATitle = "HP J2973A"
  61. J2973ACFID = 4145
  62.  
  63. ProductHardwareJ2970AIOTitle   = "HP J2970A"
  64. ProductHardwareJ2970ATitle = "HP J2970A"
  65. J2970ACFID = 4145
  66.  
  67. NetRuleHardwareType     = "Hpddnd3 Hpddnd3Adapter"
  68. NetRuleHardwareBindForm = " yes yes container"
  69. NetRuleHardwareClass    = {"Hpddnd3Adapter basic"}
  70. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  71. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  72.  
  73. [SlaveFileConstants]
  74. ProductMajorVersion      = "3"
  75. ProductMinorVersion      = "0"
  76. ProductVersion           = $(ProductMajorVersion)"."$(ProductMinorVersion)
  77. ProductSoftwareName      = "Hpddnd3"
  78. ProductSoftwareTitle     = "HP DeskDirect 10/100 LAN Adapter Driver"
  79. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\Hpddnd3.sys"
  80. NetRuleSoftwareType      = "Hpddnd3Sys ndisDriver Hpddnd3Driver"
  81. NetRuleSoftwareUse       = $(SoftwareType)
  82. NetRuleSoftwareBindForm  = """Hpddnd3Sys"" yes no container"
  83. NetRuleSoftwareClass     = {"Hpddnd3Driver basic"}
  84. NetRuleSoftwareBindable  = {"Hpddnd3Driver Hpddnd3Adapter non exclusive 100"}
  85. ProductHardwareName      = "Hpddnd3"
  86. NetRuleHardwareType      = "Hpddnd3 Hpddnd3Adapter"
  87. NetRuleHardwareBindForm  = " yes yes container"
  88. NetRuleHardwareClass     = {"Hpddnd3Adapter basic"}
  89. ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  90. ParamKeyName   = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  91.  
  92. [BusMFileConstants]
  93. ProductMajorVersion      = "3"
  94. ProductMinorVersion      = "0"
  95. ProductVersion           = $(ProductMajorVersion)"."$(ProductMinorVersion)
  96. ProductSoftwareName      = "Hpddnd3"
  97. ProductSoftwareTitle     = "HP DeskDirect 10/100 LAN Adapter Driver"
  98. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\Hpddnd3.sys"
  99. NetRuleSoftwareType      = "Hpddnd3Sys ndisDriver Hpddnd3Driver"
  100. NetRuleSoftwareUse       = $(SoftwareType)
  101. NetRuleSoftwareBindForm  = """Hpddnd3Sys"" yes no container"
  102. NetRuleSoftwareClass     = {"Hpddnd3Driver basic"}
  103. NetRuleSoftwareBindable  = {"Hpddnd3Driver Hpddnd3Adapter non exclusive 100"}
  104. ProductHardwareName      = "Hpddnd3"
  105. NetRuleHardwareType      = "Hpddnd3 Hpddnd3Adapter"
  106. NetRuleHardwareBindForm  = " yes yes container"
  107. NetRuleHardwareClass     = {"Hpddnd3Adapter basic"}
  108. ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  109. ParamKeyName   = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  110.  
  111. [GeneralConstants]
  112. from      = ""
  113. to        = ""
  114. ExitCodeOk     = 0
  115. ExitCodeCancel = 1
  116. ExitCodeFatal  = 2
  117. KeyNull         = ""
  118. MAXIMUM_ALLOWED   = 33554432
  119. RegistryErrorIndex = NO_ERROR
  120. KeyProduct      = ""
  121. KeyParameters   = ""
  122. TRUE            = 1
  123. FALSE           = 0
  124. NoTitle            = 0
  125. ExitState   = "Active"
  126. OldVersionExisted = $(FALSE)
  127. DriverPath      = $(!STF_NTPATH)\drivers
  128. [date]
  129.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  130.  
  131. [ReturnOptions]
  132.     set !G:DebugOutputControl = 1
  133.     Debug-Output "HPVGPCI: ReturnOptions."
  134.     set Status        = STATUS_FAILED
  135.     set OptionList     = {}
  136.     set OptionTextList = {}
  137.     set LanguageList = ^(LanguagesSupported, 1)
  138.     Ifcontains(i) $($0) in $(LanguageList)
  139.         ifstr(i) $($1) == ""
  140.                         goto returnoptions
  141.         endif
  142.         set PlatformList = ^(PlatformsSupported, 1)
  143.         Ifcontains(i) $($1) in $(PlatformList)
  144.                         goto returnoptions
  145.         else
  146.                         set Status = STATUS_NOTSUPPORTED
  147.                         goto finish_ReturnOptions
  148.         endif
  149.     else
  150.                 set Status = STATUS_NOLANGUAGE
  151.                 goto finish_ReturnOptions
  152.     endif
  153. returnoptions = +
  154.     set OptionList     = ^(Options, 1)
  155.     set OptionTextList = ^(OptionsText$($0), 1)
  156.     set Status         = STATUS_SUCCESSFUL
  157.     Debug-Output "HPVGPCI: ReturnOptions successful."
  158. finish_ReturnOptions = +
  159.     Return $(Status) $(OptionList) $(OptionTextList)
  160.  
  161. [InstallOption]
  162.     set Status   = STATUS_FAILED
  163.     set Option   = $($1)
  164.     set SrcDir   = $($2)
  165.     set AddCopy  = $($3)
  166.     set DoCopy   = $($4)
  167.     set DoConfig = $($5)
  168.     set LanguageList = ^(LanguagesSupported, 1)
  169.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  170.         Return STATUS_NOLANGUAGE
  171.     endif
  172.     set-subst LF = "\n"
  173.     read-syms GeneralConstants
  174.     read-syms FileConstants
  175. ;NEW
  176.     ifcontains(i) $(Option) in {J2585B,J2973A,J2970A}
  177.         read-syms BusMFileConstants
  178.     else
  179.         read-syms SlaveFileConstants
  180.     endif
  181. ;END NEW
  182.     read-syms DialogConstants$(!STF_LANGUAGE)
  183.     ifstr(i) $(!NTN_Origination) == "NCPA"
  184.         set Continue = "OK"
  185.     endif
  186.     read-syms FileConstants$(!STF_LANGUAGE)
  187. ;NEW
  188.     ifcontains(i) $(Option) in {J2585B,J2973A,J2970A}
  189.         read-syms BusMFileConstants$(!STF_LANGUAGE)
  190.     else
  191.         read-syms SlaveFileConstants$(!STF_LANGUAGE)
  192.     endif
  193. ;END NEW
  194.     detect date
  195.     set-title  $(FunctionTitle)
  196.     set to   = Begin
  197.     set from = Begin
  198.     set CommonStatus = STATUS_SUCCESSFUL
  199.     EndWait
  200. Begin = +
  201.  
  202. ;
  203. ; Get the Version of Windows NT we are installing on.  This will allow us to 
  204. ; use the various capabilities of different NT versions (e.g. PCI Support that 
  205. ; is included in NT 3.51)
  206. ;
  207.     set CurrentVersionValue = ""
  208.     OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows Nt\CurrentVersion" $(!REG_KEY_READ) KeyNt
  209.     Ifstr(i) $(KeyNt) != ""
  210.         GetRegValue $(KeyNt) "CurrentVersion" CurrentVersionValue
  211.         Debug-Output "$(InfFile) $(Option): WinNT CurrentVersion ="$(CurrentVersionValue)
  212.         CloseRegKey $(KeyNt)
  213.     Endif
  214.  
  215.     ifstr(i) (*($(CurrentVersionValue),4)) == 3.10    ; Fail install if NT 3.1
  216.             Debug-Output "$(InfFile) $(Option): Configureadapter"
  217.         set Error = "Windows NT 3.1 is not supported by this product"
  218.         goto fatal
  219.     endif
  220.  
  221.     Set ActivateDetection = FALSE
  222.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  223.         set StartLabel = removeadapter
  224.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  225.         set StartLabel = UpgradeSoftware
  226.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  227.         set StartLabel = bindingadapter
  228.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  229.         set StartLabel = configureadapter
  230.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  231.             Debug-Output "Cannot configure the Hpddnd3 driver software."
  232.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  233.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  234.                 goto ShellCodeError
  235.             endif
  236.             set Error = $($R0)
  237.             set from = end
  238.             set to = end
  239.             goto nonfatalinfo
  240.         endif
  241.     else
  242.         set StartLabel = installadapter
  243.         set OEM_ABANDON_OPTIONS = {}
  244.         set OEM_ABANDON_SOFTWARE = FALSE
  245.         set OEM_ABANDON_ON = TRUE
  246.     endif
  247.     Debug-Output "HPVGPCI.INF $(Option): =================================================="
  248.     Debug-Output "HPVGPCI.INF $(Option): STF_CWDIR is: $(!STF_CWDIR)"
  249.     Debug-Output "HPVGPCI.INF $(Option): STF_SRCDIR is: $(!STF_SRCDIR)"
  250.     Debug-Output "HPVGPCI.INF $(Option): STF_LANGUAGE is: $(!STF_LANGUAGE)"
  251.     Debug-Output "HPVGPCI.INF $(Option): Option is: $(Option)"
  252.     Debug-Output "HPVGPCI.INF $(Option): !STF_NCDETECT  is: $(!STF_NCDETECT)"
  253.     Debug-Output "HPVGPCI.INF $(Option): !STF_NCOPTION  is: $(!STF_NCOPTION)"
  254.     Debug-Output "HPVGPCI.INF $(Option): !STF_NCDETCARD is: $(!STF_NCDETCARD)"
  255.     Debug-Output "HPVGPCI.INF $(Option): !STF_NCDETINFO is: $(!STF_NCDETINFO)"
  256. ; Primary Bus
  257.     Debug-Output "HPVGPCI.INF $(Option): !STF_BusType is $(!STF_BUSTYPE)"
  258. ; All Buses
  259.     Debug-Output "HPVGPCI.INF $(Option): !STF_BusTypeList is $(!STF_BUSTYPELIST)"
  260.     Debug-Output "HPVGPCI.INF $(Option): =================================================="
  261.  
  262.     Set DetectedCard = FALSE
  263.     Goto $(StartLabel)
  264. installadapter = +
  265.  
  266.     Debug-Output "HPVGPCI.INF $(Option): Installadapter"
  267. ;
  268. ; Check for prior SW install
  269. ;
  270.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  271.     Ifstr $(KeyProduct) != $(KeyNull)
  272.         CloseRegKey $(KeyProduct)
  273.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  274. ;           Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  275. ;               $(ProductVersion)
  276. ;           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  277. ;               goto ShellCodeError
  278. ;           endif
  279.            goto end
  280.         else
  281. ;           Shell $(UtilityInf), CardExistedDlg
  282. ;           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  283. ;               goto ShellCodeError
  284. ;           endif
  285. ;           ifstr(i) $($R1) != "OK"
  286. ;               goto end
  287. ;           endif
  288.            set OldVersionExisted = $(TRUE)
  289.         endif
  290.     endif
  291.  
  292.  
  293. ;
  294. ; Install the DLL
  295. ;
  296.     Set CurrParamSettings = {}
  297.     set   OldSource =  $(!STF_SRCDIR)
  298.     Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(!STF_SRCDIR)
  299.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  300.           Goto fatal
  301.     Else-Ifstr(i) $($R0) == STATUS_FAILED
  302.           Goto fatal
  303.     Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  304.           Goto installstep1
  305.     Endif
  306.     Set !STF_SRCDIR = $($R1)
  307. ;    install "Install-Dll"
  308.     Set !STF_SRCDIR = $(OldSource)
  309.  
  310.  
  311. ;
  312. ;Set Defaults
  313. ;
  314.     set IOBaseAddrValue = *($(IOBaseAddrList), $($(Option)IOBaseAddrDefault))
  315.     Goto adaptersetup
  316.  
  317. configureadapter = +
  318.     Debug-Output "HPVGPCI.INF $(Option): Configureadapter"
  319.  
  320.     Ifstr $(KeyProduct) == $(KeyNull)
  321.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  322.         Ifstr $(KeyProduct) == $(KeyNull)
  323.             set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  324.             Debug-Output "Cannot find component product key"
  325.             goto fatalregistry
  326.         Endif
  327.     Endif
  328.     Debug-Output "HPVGPCI.INF $(Option): Shelling to FindService"
  329.     Shell $(UtilityInf) FindService, $(KeyProduct)
  330.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  331.         Debug-Output "HPVGPCI.INF: FindService shell failure"
  332.         Goto ShellCodeError
  333.     Endif
  334.     Ifstr(i) $($R0) != NO_ERROR
  335.         Debug-Output "HPVGPCI.INF: FindService Shell error: $($R0)"
  336.         Goto fatalregistry
  337.     endif
  338.     Set KeyParameters = $($R2)
  339.     CloseRegKey $($R1)
  340.     Ifstr $(KeyParameters) == $(KeyNull)
  341.         set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  342.         Debug-Output "HPVGPCI.INF: Cannot find component service"
  343.         goto fatalregistry
  344.     endif
  345.     set OldVersionExisted = $(TRUE)
  346.     set ValueName = ""
  347.     set ValueData = ""
  348.     set ValueStr  = ""
  349.     set ValueList = {}
  350.     EnumRegValue $(KeyParameters) ValueList
  351.  
  352.     ForListDo $(ValueList)
  353.     set ValueItem = $($)
  354.     set ValueName = *($(ValueItem),1)
  355.     set ValueData = *($(ValueItem),4)
  356.     ifstr(i) $(ValueName) == "InterruptNumber"
  357.         set IRQValueIndex = $(ValueData)
  358.     else-ifstr(i) $(ValueName) == "IoBaseAddress"
  359.         set IOBaseAddrIndex = $(ValueData)
  360.     else-ifstr(i) $(ValueName) == "SlotNumber"
  361.         set IOBaseAddrIndex = $(ValueData)
  362.     else-ifstr(i) $(ValueName) == "AdapterType"
  363.         set AdapterTypeIndex = $(ValueData)
  364. ;        else-ifstr(i) $(ValueName) == "MemoryMappedBaseAddress"
  365. ;        set MemoryMapIndex = $(ValueData)
  366.     endif
  367.  
  368.     EndForListDo
  369.  
  370. ;
  371. ; HW can be configured only if AdapterType is 3
  372. ;
  373.     Debug-Output "HPVGPCI.INF: AdapterType is $(AdapterTypeIndex)"
  374.     ifint $(AdapterTypeIndex) != 3
  375.         Debug-Output "Cannot configure the HP PCI adapter card."
  376.         Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_HARDWARE
  377.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  378.             goto ShellCodeError
  379.         endif
  380.         set Error = $($R0)
  381.         set from = end
  382.         set to = end
  383.         goto nonfatalinfo
  384.     endif
  385.  
  386.     set IOBaseAddrValue = *($(IOBaseAddrList), ~($(IOBaseAddrValues),$(IOBaseAddrIndex)))
  387.  
  388.     ifstr(i) $(IOBaseAddrValue) == ""
  389.     set IOBaseAddrValue = *($(IOBaseAddrList), 1)
  390.     endif
  391.  
  392. adaptersetup = +
  393.     Shell "" DebugConfiguration "before displaying dialog"
  394.     Set from = adapteroptions
  395.     goto adapteroptions
  396. adapteroptions = +
  397.  
  398.     read-syms FileDependentDlg$(!STF_LANGUAGE)
  399.     Debug-Output "HPVGPCI: Assign AdapterType."
  400. ;AdapterType: 0=ISA, 1=EISA, 2=MCA, 3=PCI/IO, 4=PCI/Slot
  401.     set AdapterTypeValue = $($(Option)AdapterType)
  402.     Debug-Output "HPVGPCI: AdapterType is $(AdapterType)."
  403.  
  404.     ifint $(AdapterTypeValue) == 3
  405. ;
  406. ;       Manual installation
  407. ;
  408.         set NTDetected = $(FALSE)
  409.         Debug-Output "HPVGPCI $(Option): Manual Install."
  410.         Debug-Output "HPVGPCI: Start the dialog box."
  411.         LoadLibrary "Disk 1" $(DialogDllName) !hLib
  412.         SetHelpFile "hpvgp.hlp" $(MinID) $(MaxID)
  413.         ui start "InputDlg"  $(!hLib)
  414.         FreeLibrary $(!hLib)
  415.         ifstr(i) $(DLGEVENT) == "CONTINUE"
  416. ;                set IRQValueIndex = $(Combo1Out)
  417. ;                set IOBaseAddrIndex = $(Combo2Out)
  418.                 set IOBaseAddrIndex = $(Combo1Out)
  419. ;                set MemoryMapIndex = $(Combo3Out)
  420.                 set AdapterList = $(Option)   ;; 1 Item to install
  421.                 ui pop 1
  422.                 goto nextstep
  423.         else-ifstr(i) $(DLGEVENT) == "BACK"
  424.                 set CommonStatus = STATUS_USERCANCEL
  425.                 Debug-Output "Action: exit. Bye."
  426.                 ui pop 1
  427.                 goto end
  428.         else
  429.                 ui pop 1
  430.                 Debug-Output "Action: unknown. Bye."
  431.                 goto end
  432.         endif
  433.         set BusTypeNum = 5
  434.         Debug-Output "HPVGPCI $(Option): Assign BusType = $(BusTypeNum)"
  435.         set BusNumber = 0
  436.     else
  437. ;
  438. ; Plug 'n Play installation
  439. ;
  440.         Debug-Output "HPVGPCI $(Option): 3.50 Plug and Play Install."
  441.         set NTDetected = $(FALSE)
  442.         ifstr(i) *($(CurrentVersionValue),4) == 3.50  ;; We need to ask on v3.50
  443.             Debug-Output "HPVGPCI.INF $(Option): Running 3.50 Bus Dialog"
  444.             set BusInterfaceType = 5
  445.             set BusTypeNum = 5
  446.             Debug-Output "HPVGPCI $(Option): Assign BusType = $(BusTypeNum)"
  447.             set BusNumber = 0
  448.             set NTDetected = $(FALSE)
  449.             Shell $(UtilityInf),GetBusTypeDialog,$(ProductHardware$(Option)Description) $(BusInterfaceType) $(BusNumber)
  450.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  451.                 Debug-Output "ShellCode error."
  452.                 goto ShellCodeError
  453.             endif
  454. ;            set BusInterfaceType = $($R1)
  455. ; Leave BusType hardcoded at 5.
  456. ;            set BusTypeNum = $($R1)
  457.             set BusNumber = $($R2)
  458.             set BusTypeNum = 5
  459.             Debug-Output "HPVGPCI $(Option): Assign BusType = $(BusTypeNum)"
  460.             set AdapterList = $(Option)   ;; 1 Item to install
  461.             Debug-Output "HPVGPCI.INF $(Option): BusInterfaceType = $(BusInterfaceType)"
  462.             Debug-Output "HPVGPCI.INF $(Option): BusNumber = $(BusNumber)"
  463.         else
  464.             Debug-Output "HPVGPCI $(Option): 3.50 Plug and Play Install."
  465.             Debug-Output "HPVGPCI.INF $(Option): Running 3.51 PCI Dectection"
  466.             ;;
  467.             ;; v3.51 has PCI detection code built in.
  468.             ;;
  469.             set NTDetected = $(TRUE)
  470.             set Vendor = 4156       ;; 0x103c is HP's Vendor ID!
  471.             set-div CFID = $($(Option)CFID) 1
  472.             Debug-Output "HPVGPCI.INF $(Option): VendorID = $(Vendor)"
  473.             Debug-Output "HPVGPCI.INF $(Option): CFID = $(CFID)"
  474.             Shell $(UtilityInf), GetPCIInformation, $(Vendor) $(CFID)
  475.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  476.                  goto ShellCodeError
  477.             endif
  478.             ifstr(i) $($R0) == {}
  479.                  set Error = $(CANNOT_FIND_ANY_CARD)
  480.                  set CommonStatus = USER_CANCEL
  481.                  set from = end
  482.                  goto nonfatal
  483.             endif
  484.             set BusTypeNum = 5
  485.             Debug-Output "HPVGPCI $(Option): Assign BusType = $(BusTypeNum)"
  486.             set AdapterList = $($R0)
  487.         endif
  488.     endif
  489.  
  490. nextstep = +
  491.     Shell "" DebugConfiguration "after running dialog"
  492.     Set from = adapteroptions
  493.     Set to = skipoptions
  494.     goto skipoptions
  495. skipoptions =+
  496. ;    ifint $(OldVersionExisted) == $(TRUE)
  497. ;        ifstr(i) $(!NTN_InstallMode) == configure
  498. ;            goto writeparameters
  499. ;        endif
  500. ;    endif
  501.     StartWait
  502. ;
  503. ;   If this is a new install then copy the driver files.
  504. ;
  505.     ifint $(OldVersionExisted) == $(FALSE)
  506.         ifstr(i) $(!NTN_InstallMode) == "install"
  507.            Ifstr(i) $(DoCopy) == "YES"
  508.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  509.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  510.                   Goto ShellCodeError
  511.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  512.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  513.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  514.                       goto ShellCodeError
  515.                   endif
  516.                   set Error = $($R0)
  517.                   Goto fatal
  518.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  519.                   Goto successful
  520.               Endif
  521.               Set SrcDir = $($R1)
  522.            Endif
  523.            install "Install-Option"
  524.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  525.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  526.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  527.                   goto ShellCodeError
  528.               endif
  529.               set Error = $($R0)
  530.               goto fatal
  531.            endif
  532.         endif
  533. ;
  534. ; Add Software Component
  535. ;
  536.         Debug-Output "HPVGPCI $(Option): Add Software Component."
  537.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  538.             $(ProductSoftwareName), +
  539.             $(ProductSoftwareName), +
  540.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  541.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  542.             $(NetEventDLL)
  543.         Set OEM_ABANDON_SOFTWARE = TRUE
  544.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  545.             Debug-Output "ShellCode error"
  546.             goto ShellCodeError
  547.         endif
  548.         set RegistryErrorIndex = $($R0)
  549.         set KeyProduct      = $($R1)
  550.         Set SoftNetRulesKey = $($R2)
  551.         CloseRegKey $($R3)           ; SoftServiceKey
  552.         CloseRegKey $($R4)           ; SoftParameterKey
  553.         CloseRegKey $($R5)           ; SoftLinkageKey
  554.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  555.             EndWait
  556.             Debug-Output "Registry error: add software components"
  557.             CloseRegKey $(KeyProduct)
  558.             CloseRegKey $(SoftNetRulesKey)
  559.             goto fatalregistry
  560.         endif
  561.         Debug-Output "HPVGPCI $(Option): Add Product Software Values."
  562.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  563.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  564.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  565.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  566.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  567.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  568.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  569.         Shell  $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
  570.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  571.             Debug-Output "ShellCode error."
  572.             goto ShellCodeError
  573.         endif
  574.         set RegistryErrorIndex = $($R0)
  575.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  576.             EndWait
  577.             Debug-Output "Registry error: add value list."
  578.             CloseRegKey $(KeyProduct)
  579.             CloseRegKey $(SoftNetRulesKey)
  580.             goto fatalregistry
  581.         endif
  582. ;
  583. ; Add Net Rule Values
  584. ;
  585.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  586.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  587.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  588.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  589.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  590.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  591.         Debug-Output "HPVGPCI: Add Net Rule Values."
  592.         Shell  $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
  593.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  594.             Debug-Output "ShellCode error."
  595.             goto ShellCodeError
  596.         endif
  597.         set RegistryErrorIndex = $($R0)
  598.         CloseRegKey $(KeyProduct)
  599.         CloseRegKey $(SoftNetRulesKey)
  600.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  601.             EndWait
  602.             Debug-Output "Registry error: add value list."
  603.             goto fatalregistry
  604.         endif
  605.     endif
  606.  
  607. ;
  608. ; Process the Adapter List
  609. ;
  610.     Debug-Output "HPVGPCI.INF $(Option): Adapterlist = $(AdapterList)"
  611.     ForListDo $(AdapterList)
  612.         ifint $(OldVersionExisted) == $(TRUE)
  613.             ifstr(i) $(!NTN_InstallMode) == configure
  614.                 goto writeparameters
  615.             endif
  616.         endif
  617.  
  618.         Set InstallCard = "YES"
  619.         ifint $(NTDetected) == $(TRUE)
  620.             set DetectedBusNum = *($($),1)
  621.             set DetectedSlotNum = *($($),2)
  622.             Debug-Output "HPVGPCI.INF $(Option): DetectedBusNumber = $(DetectedBusNum)"
  623.             Debug-Output "HPVGPCI.INF $(Option): DetectedSlotNum = $(DetectedSlotNum)"
  624.  
  625. ; This check will cover the J2585A
  626.             Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(DetectedBusNum), +
  627.                 $(DetectedSlotNum), $(ProductHardware$(Option)Description), $(ProductHardwareName)
  628.  
  629.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  630.                 goto ShellCodeError
  631.             endif
  632.             ifstr $($R0) != "NO_ERROR"
  633.                 set Error = $($R0)
  634.                 goto fatal
  635.             endif
  636.             ifstr(i) $($R1) == "YES"
  637.                 set InstallCard = "NO"  ;; Don't want to re-install, it's there already
  638.             endif
  639.  
  640. ;
  641. ; NEW - Don't over-install onto any Lassen based adapter
  642. ;
  643.  
  644. ; Check for J2585B
  645.             Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(DetectedBusNum), +
  646.                 $(DetectedSlotNum), $(ProductHardwareJ2585BDescription), $(ProductHardwareName)
  647.  
  648.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  649.                 goto ShellCodeError
  650.             endif
  651.             ifstr $($R0) != "NO_ERROR"
  652.                 set Error = $($R0)
  653.                 goto fatal
  654.             endif
  655.             ifstr(i) $($R1) == "YES"
  656.                 set InstallCard = "NO"  ;; Don't re-install, it's there already
  657.             endif
  658.  
  659. ; Check for J2973A
  660.             Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(DetectedBusNum), +
  661.                 $(DetectedSlotNum), $(ProductHardwareJ2973ADescription), $(ProductHardwareName)
  662.  
  663.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  664.                 goto ShellCodeError
  665.             endif
  666.             ifstr $($R0) != "NO_ERROR"
  667.                 set Error = $($R0)
  668.                 goto fatal
  669.             endif
  670.             ifstr(i) $($R1) == "YES"
  671.                 set InstallCard = "NO"  ;; Don't re-install, it's there already
  672.             endif
  673.  
  674. ; Check for J2970A
  675.             Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(DetectedBusNum), +
  676.                 $(DetectedSlotNum), $(ProductHardwareJ2970ADescription), $(ProductHardwareName)
  677.  
  678.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  679.                 goto ShellCodeError
  680.             endif
  681.             ifstr $($R0) != "NO_ERROR"
  682.                 set Error = $($R0)
  683.                 goto fatal
  684.             endif
  685.             ifstr(i) $($R1) == "YES"
  686.                 set InstallCard = "NO"  ;; Don't re-install, it's there already
  687.             endif
  688.  
  689. ;
  690. ; END NEW
  691. ;
  692.         endif
  693.  
  694.         ifstr(i) $(InstallCard) == "NO"
  695.             Debug-Output "HPVGPCI.INF $(Option): Card Already at $(DetectedBusNum):$(DetectedSlotNum) already installed!"
  696. ;            set Error = "An adapter at $(DetectedBusNum):$(DetectedSlotNum) is already installed!"
  697.             set Error = "An adapter at Bus $(DetectedBusNum), Slot $(DetectedSlotNum) is already installed!"
  698.             Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  699.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  700.                 goto ShellCodeError
  701.             endif
  702.             goto nextadapter
  703. ;        else
  704.         endif
  705. ;
  706. ;       AddHardwareComponent
  707. ;
  708. ;; NEW NEW
  709.         Debug-Output "HPVGPCI: Add Hardware Component."
  710.         Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  711.         ifint $($R4) != -1
  712.             Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  713.         endif
  714.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  715.             Debug-Output "Cannot add hardware component"
  716.             goto ShellCodeError
  717.         endif
  718.         set RegistryErrorIndex = $($R0)
  719.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  720.             EndWait
  721.             Debug-Output "Registry error: add hardware component"
  722.             CloseRegKey $($R1)
  723.             CloseRegKey $($R2)
  724.             CloseRegKey $($R3)
  725.             goto fatalregistry
  726.         endif
  727.         set KeyParameters = $($R3)
  728.         set KeyAdapterRules = $($R2)
  729.         set AdapterNumber = $($R4)
  730.         set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  731.                    {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
  732.                    {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
  733.                    {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  734.                    {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  735.                    {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  736.         Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  737.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  738.             Debug-Output "ShellCode error"
  739.             goto ShellCodeError
  740.         endif
  741.         CloseRegKey $($R1)
  742.         set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  743.         set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  744.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  745.                     {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  746.                     {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  747.                     {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  748.         Debug-Output "HPVGPCI: Add Product Hardware Values."
  749.         Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  750.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  751.             Debug-Output "ShellCode error."
  752.             goto ShellCodeError
  753.         endif
  754.         set RegistryErrorIndex = $($R0)
  755.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  756.             EndWait
  757.             Debug-Output "Registry error: add value list."
  758.             CloseRegKey $(KeyParameters)
  759.             CloseRegKey $(KeyAdapterRules)
  760.             goto fatalregistry
  761.         endif
  762.         CloseRegKey $(KeyAdapterRules)
  763.         goto writeparameters
  764. writeparameters = +
  765. ;
  766. ;       Add HW Configuration Parameters
  767. ;
  768.         Debug-Output "HPVGPCI $(Option): Assign AdapterType."
  769. ;AdapterType: 0=ISA, 1=EISA, 2=MCA, 3=PCI/IO, 4=PCI/Slot
  770.         set AdapterTypeValue = $($(Option)AdapterType)
  771.  
  772.         ifint $(AdapterTypeValue) == 3
  773.             Ifstr(i) $(CurrentVersionValue) == ""
  774.                 Debug-Output "HPVGPCI.INF $(Option): Set BusNumber = 0 "
  775.                 Set BusNumber = 0
  776.             Else
  777.                 Ifstr(i) $(CurVer) == "3.1"
  778.                     Debug-Output "HPVGPCI.INF $(Option): 3.10 Set BusNumber = 0 "
  779.                     Set BusNumber = 0
  780.                     Shell $(UtilityInf), GetBusTypeNum
  781.                     set TempBusTypeNum = $($R1)
  782.                     set BusTypeNum = $(TempBusTypeNum)
  783.                 else
  784.                     ifstr(i) $(!NTN_InstallMode) != configure
  785.                         Debug-Output "HPVGPCI.INF: Shell out for BusNumber"
  786.                         Shell $(UtilityInf),GetBusTypeDialog,$(ProductHardware$(Option)Description) $(BusTypeNum) $(BusNumber)
  787.                         Set BusNumber = $($R2)
  788. ;                        Set BusTypeNum = $($R1)
  789.                         Set BusTypeNum = 5
  790.                         Debug-Output "HPVGPCI $(Option): Assign BusType = $(BusTypeNum)"
  791.                     else
  792.                         Debug-Output "HPVGPCI.INF $(Option): Configuring, don't shell out for BusNumber"
  793.                     endif
  794.                 endif
  795.             Endif
  796.             
  797.             Debug-Output "HPVGPCI $(Option): Assign IOBaseAddress."
  798.             set IOBaseAddrValue = *($(IOBaseAddrValues), ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
  799.  
  800.             Debug-Output "HPVGPCI $(Option): Form the Adapter Parameter List."
  801.             Debug-Output "HPVGPCI $(Option): IOBaseAddress string is: $($(Option)BaseAddress)"
  802.             Debug-Output "HPVGPCI $(Option): IOBaseAddress = $(IOBaseAddressValue)"
  803.             Debug-Output "HPVGPCI $(Option): BusNumber     = $(BusNumber)"
  804.             Set NewValueList = { +
  805.                    {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
  806.                    {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
  807.             Debug-Output "HPVGPCI: Add Adapter IoBaseAddress Parameter."
  808.             Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  809. ;            CloseRegKey $(KeyParameters)
  810.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  811.                 Debug-Output "ShellCode error."
  812.                 goto ShellCodeError
  813.             endif
  814.             set RegistryErrorIndex = $($R0)
  815.             Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  816.                 Debug-Output "Registry error: Add value list"
  817.                 goto fatalregistry
  818.             endif
  819.  
  820.         else
  821.             ifint $(NTDetected) == $(TRUE)
  822.                 set BusNumber = $(DetectedBusNum)
  823.                 set SlotNum = $(DetectedSlotNum)
  824. ;                set BusInterfaceType = $(BusTypeNum)
  825.                 
  826.                 Set NewValueList = {+
  827.                       {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
  828.                       {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)}+
  829.                                        }
  830.                 Debug-Output "HPVGPCI.INF $(Option): Set HardwareParameterKey = $(NewValueList)"
  831.                 Debug-Output "HPVGPCI $(Option): SlotNumber    = $(SlotNumber)"
  832.                 Debug-Output "HPVGPCI $(Option): BusNumber     = $(BusNumber)"
  833.                 Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  834.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  835.                     goto ShellCodeError
  836.                 endif
  837.  
  838.             else
  839.                 Set NewValueList = {+
  840.                     {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
  841.                                        }
  842.                 Debug-Output "HPVGPCI.INF $(Option): Set HardwareParameterKey = $(NewValueList)"
  843.                 Debug-Output "HPVGPCI $(Option): BusNumber     = $(BusNumber)"
  844.                 Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  845.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  846.                     goto ShellCodeError
  847.                 endif
  848.             endif
  849.         endif
  850.         set BusTypeNum = 5
  851.         Debug-Output "HPVGPCI $(Option): Assign BusType = $(BusTypeNum)"
  852.         Set NewValueList = { +
  853.                  {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  854.                  {AdapterType,$(NoTitle),$(!REG_VT_DWORD),$(AdapterTypeValue)},+
  855.                  {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  856.                            }
  857.         Debug-Output "HPVGPCI $(Option): BusType       = $(BusType)"
  858.         Debug-Output "HPVGPCI $(Option): AdapterType   = $(AdapterType)"
  859.         Debug-Output "HPVGPCI $(Option): MediaType     = $(MediaType)"
  860.         Debug-Output "HPVGPCI $(Option): Add Adapter Configuration Parameters."
  861.         Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  862.         CloseRegKey $(KeyParameters)
  863.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  864.             Debug-Output "ShellCode error."
  865.             goto ShellCodeError
  866.         endif
  867.         set RegistryErrorIndex = $($R0)
  868.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  869.             Debug-Output "Registry error: Add value list"
  870.             goto fatalregistry
  871.         endif
  872. ;        endif
  873.  
  874. nextadapter = +
  875.     EndForListDo
  876.     EndWait
  877.     goto successful
  878. ;; END NEW
  879. ;; OLD
  880.  
  881.     Debug-Output "HPVGPCI: Add Hardware Component."
  882.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  883.     ifint $($R4) != -1
  884.         Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  885.     endif
  886.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  887.         Debug-Output "Cannot add hardware component"
  888.         goto ShellCodeError
  889.     endif
  890.     set RegistryErrorIndex = $($R0)
  891.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  892.         EndWait
  893.         Debug-Output "Registry error: add hardware component"
  894.         CloseRegKey $($R1)
  895.         CloseRegKey $($R2)
  896.         CloseRegKey $($R3)
  897.         goto fatalregistry
  898.     endif
  899.     set KeyParameters = $($R3)
  900.     set KeyAdapterRules = $($R2)
  901.     set AdapterNumber = $($R4)
  902.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  903.                        {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
  904.                        {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
  905.                        {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  906.                        {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  907.                        {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  908.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  909.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  910.         Debug-Output "ShellCode error"
  911.         goto ShellCodeError
  912.     endif
  913.     CloseRegKey $($R1)
  914.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  915.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  916.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  917.                         {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  918.                         {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  919.                         {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  920.     Debug-Output "HPVGPCI: Add Product Hardware Values."
  921.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  922.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  923.         Debug-Output "ShellCode error."
  924.         goto ShellCodeError
  925.     endif
  926.     set RegistryErrorIndex = $($R0)
  927.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  928.         EndWait
  929.         Debug-Output "Registry error: add value list."
  930.         CloseRegKey $(KeyParameters)
  931.         CloseRegKey $(KeyAdapterRules)
  932.         goto fatalregistry
  933.     endif
  934.     CloseRegKey $(KeyAdapterRules)
  935.     goto writeparameters
  936. writeparameters = +
  937.     Shell $(UtilityInf), GetBusTypeNum
  938.     set TempBusTypeNum = $($R1)
  939. ; PCI Bus Type
  940.     set BusTypeNum = 5
  941.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  942.         Debug-Output "ShellCode error."
  943.         goto ShellCodeError
  944.     endif
  945.  
  946.     Debug-Output "HPVGPCI: Assign AdapterType."
  947. ;AdapterType: 0=ISA, 1=EISA, 2=MCA, 3=PCI/IO, 4=PCI/Slot
  948.     set AdapterTypeValue = $($(Option)AdapterType)
  949.  
  950. ;Get BusNumber
  951.     set BusNumber = 0
  952.  
  953.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_SoftwareBase)"\Microsoft\Windows Nt\CurrentVersion" $(MAXIMUM_ALLOWED) KeyNt
  954.     Ifstr(i) $(KeyNt) != ""
  955.         GetRegValue $(KeyNt) "CurrentVersion" CurVerValue
  956.         Set CurVer = *($(CurVerValue),4)
  957.         Debug-Output "HPVGPCI.INF: NT Version is "$(CurVer)
  958.         CloseRegKey $(KeyNt)
  959.     Endif
  960.  
  961.     Ifstr(i) $(CurVer) == ""
  962.       Debug-Output "HPVGPCI.INF: Set BusNumber = 0 "
  963.       Set BusNumber = 0
  964.     Else
  965.       Ifstr(i) $(CurVer) == "3.1"
  966.         Debug-Output "HPVGPCI.INF: Set BusNumber = 0 "
  967.         Set BusNumber = 0
  968.         set BusTypeNum = $(TempBusTypeNum)
  969. ;        set AdapterTypeValue = 0
  970.       else
  971. ;        Debug-Output "HPVGPCI.INF: Shell out for BusNumber"
  972.         Shell $(UtilityInf),GetBusTypeDialog,$(ProductHardware$(Option)Description) $(BusTypeNum) $(BusNumber)
  973.     Set BusNumber = $($R2)
  974.       endif
  975.     Endif
  976.  
  977.     Debug-Output "HPVGPCI: Assign IOBaseAddress."
  978.     set IOBaseAddrValue = *($(IOBaseAddrValues), ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
  979.  
  980.     Debug-Output "HPVGPCI: Form the Adapter Parameter List."
  981.     Debug-Output "HPVGPCI: IOBaseAddress string is: "$($(Option)BaseAddress)
  982.  
  983. ;    Set NewValueList = {{InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
  984.     Set NewValueList = { +
  985.                        {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  986.                        {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
  987.                        {AdapterType,$(NoTitle),$(!REG_VT_DWORD),$(AdapterTypeValue)},+
  988.                        {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  989. ;                       {MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MemoryMapValue)},+
  990.                        {$($(Option)BaseAddress),$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
  991. ;                       {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
  992.     Debug-Output "HPVGPCI: Add Adapter Configuration Parameters."
  993.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  994.     CloseRegKey $(KeyParameters)
  995.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  996.         Debug-Output "ShellCode error."
  997.         goto ShellCodeError
  998.     endif
  999.     set RegistryErrorIndex = $($R0)
  1000.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1001.         Debug-Output "Registry error: Add value list"
  1002.         goto fatalregistry
  1003.     endif
  1004.     EndWait
  1005.     goto successful
  1006. ;; END OLD
  1007. bindingadapter =+
  1008.     set Error = "Binding: Sorry, not yet implemented."
  1009.     goto fatal
  1010. removeadapter = +
  1011.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  1012.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  1013.             $(ProductSoftwareName)
  1014.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1015.             Debug-Output "ShellCode error"
  1016.             goto ShellCodeError
  1017.         endif
  1018.         set RegistryErrorIndex = $($R0)
  1019.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1020.             goto fatalregistry
  1021.         endif
  1022.     else
  1023.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  1024.             $(ProductSoftwareName), $(!NTN_RegBase)
  1025.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1026.             Debug-Output "ShellCode error"
  1027.             goto ShellCodeError
  1028.         endif
  1029.         set RegistryErrorIndex = $($R0)
  1030.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1031.             goto fatalregistry
  1032.         endif
  1033.     endif
  1034.     goto end
  1035. UpgradeSoftware = +
  1036. ;; NEW
  1037.     Debug-Output "HPVGPCI.INF $(Option): UpdateSoftware"
  1038.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  1039.     Ifstr $(KeyProduct) != $(KeyNull)
  1040.         Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  1041.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1042.                 Debug-Output "ShellCode error"
  1043.                 goto ShellCodeError
  1044.             endif
  1045.             set !UG_Filename = $($R0)
  1046.             install "Install-Update"
  1047.             ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  1048.                 goto fatal
  1049.             endif
  1050.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  1051.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  1052.             CloseRegKey $(KeyProduct)
  1053.     else
  1054.         goto fatalregistry
  1055.     endif
  1056.     goto end
  1057. ;; END NEW
  1058. ;; OLD
  1059.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  1060.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  1061.         Ifstr $(KeyProduct) != $(KeyNull)
  1062.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  1063.             set Version = *($(VersionInfo), 4)
  1064.             Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  1065.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1066.                 Debug-Output "ShellCode error"
  1067.                 goto ShellCodeError
  1068.             endif
  1069.             set !UG_Filename = $($R0)
  1070.             ifstr(i) $(!UG_Filename) != ""
  1071.                 install "Install-Update"
  1072.                 ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  1073.                     goto fatal
  1074.                 endif
  1075.             endif
  1076.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  1077.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  1078.             ifint $(Version) != $(ProductVersion)
  1079.             endif
  1080.             CloseRegKey $(KeyProduct)
  1081.         else
  1082.             goto fatalregistry
  1083.         endif
  1084.     else
  1085.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  1086.               $(MAXIMUM_ALLOWED) NetworkCardKey
  1087.         Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  1088.             GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  1089.             set ServiceName = *($(ServiceNameInfo), 4)
  1090.             OpenRegKey $(NetworkCardKey) "" "NetRules" +
  1091.                 $(MAXIMUM_ALLOWED) NetRuleKey
  1092.             Ifstr(i) $(NetRuleKey) != $(KeyNull)
  1093.             else
  1094.                 goto fatalregistry
  1095.             endif
  1096.             CloseRegKey $(NetRules)
  1097.             CloseRegKey $(NetworkCardKey)
  1098.         else
  1099.             goto fatalregistry
  1100.         endif
  1101.         OpenRegKey $(!REG_H_LOCAL) "" +
  1102.               $(!NTN_ServiceBase)"\"$(ServiceName) +
  1103.               $(MAXIMUM_ALLOWED) ServiceKey
  1104.         Ifstr(i) $(ServiceKey) != $(KeyNull)
  1105.             CloseRegKey $(ServiceKey)
  1106.         else
  1107.             goto fatalregistry
  1108.         endif
  1109.     endif
  1110.     goto end
  1111. ;; END OLD
  1112. successful = +
  1113.     goto end
  1114. abandon = +
  1115.     ForListDo $(OEM_ABANDON_OPTIONS)
  1116.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  1117.             $(ProductSoftwareName), $($)
  1118.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1119.             Debug-Output "ShellCode error"
  1120.             goto ShellCodeError
  1121.         endif
  1122.         set RegistryErrorIndex = $($R0)
  1123.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1124.             goto fatalregistry
  1125.         endif
  1126.     EndForListDo
  1127.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  1128.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  1129.             $(ProductSoftwareName), FALSE
  1130.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1131.             Debug-Output "ShellCode error"
  1132.             goto ShellCodeError
  1133.         endif
  1134.         set RegistryErrorIndex = $($R0)
  1135.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1136.             goto fatalregistry
  1137.         endif
  1138.     endif
  1139.     goto end
  1140. warning = +
  1141.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  1142.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1143.         goto ShellCodeError
  1144.     endif
  1145.     ifstr(i) $($R1) == "OK"
  1146.         goto $(to)
  1147.     else-ifstr(i) $($R1) == "CANCEL"
  1148.         goto $(from)
  1149.     else
  1150.         goto "end"
  1151.     endif
  1152. nonfatalinfo = +
  1153.     Set Severity = STATUS
  1154.     Set CommonStatus = STATUS_USERCANCEL
  1155.     goto nonfatalmsg
  1156. nonfatal = +
  1157.     Set Severity = NONFATAL
  1158.     goto nonfatalmsg
  1159. nonfatalmsg = +
  1160.     ifstr(i) $(Error) == ""
  1161.         Set Severity = NONFATAL
  1162.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  1163.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1164.             goto ShellCodeError
  1165.         endif
  1166.         set Error = $($R0)
  1167.     endif
  1168.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  1169.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1170.         goto ShellCodeError
  1171.     endif
  1172.     ifstr(i) $($R1) == "OK"
  1173.         goto $(from)
  1174.     else
  1175.         goto "end"
  1176.     endif
  1177. fatalregistry = +
  1178.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  1179.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1180.         goto ShellCodeError
  1181.     endif
  1182.     set Error = $($R0)
  1183.     goto fatal
  1184. fataldetect = +
  1185.     Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  1186.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1187.         goto ShellCodeError
  1188.     endif
  1189.     set Error = $($R0)
  1190.     Goto fatal
  1191. fatal = +
  1192.     ifstr(i) $(Error) == ""
  1193.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  1194.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1195.             goto ShellCodeError
  1196.         endif
  1197.         set Error = $($R0)
  1198.     endif
  1199.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  1200.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1201.         goto ShellCodeError
  1202.     endif
  1203.     goto setfailed
  1204. ShellCodeError = +
  1205.     set DlgType      = "MessageBox"
  1206.     set STF_MB_TITLE = "Error: "$(FunctionTitle)
  1207.     set STF_MB_TEXT  = "Shell Code Error"
  1208.     set STF_MB_TYPE  = 1
  1209.     set STF_MB_ICON  = 3
  1210.     set STF_MB_DEF   = 1
  1211.     ui start "Error Message"
  1212.     goto setfailed
  1213. setfailed = +
  1214.     set CommonStatus = STATUS_FAILED
  1215.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  1216.         set OEM_ABANDON_ON = FALSE
  1217.         goto abandon
  1218.     endif
  1219.     goto end
  1220. end = +
  1221.     goto term
  1222. term = +
  1223.     Return $(CommonStatus)
  1224. [DebugConfiguration]
  1225.     Set InfName = "HPVGPCI.INF"
  1226.     Debug-Output $(InfName)" **CONFIGURATION STATE: $($0)"
  1227. ;    Debug-Output $(InfName)" IRQLevel is $(!p:IRQValue)"
  1228.     Debug-Output $(InfName)" IOBaseAddrValue is $(!p:IOBaseAddrValue)"
  1229.     Debug-Output $(InfName)" IOBaseAddrValue is $(IOBaseAddrValue)"
  1230. ;    Debug-Output $(InfName)" MemoryMappedBaseAddr is $(!p:MemoryMapValue)"
  1231.     Debug-Output $(InfName)" AdapterType is $(AdapterType)"
  1232.     Debug-Output $(InfName)" BusType is $(BusType)"
  1233.     return
  1234. [Install-Option]
  1235.     set STF_VITAL = ""
  1236.     ifstr(i) $(AddCopy) == "YES"
  1237.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1238.     endif
  1239.     ifstr(i) $(DoCopy) == "YES"
  1240.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1241.        CopyFilesInCopyList
  1242.     endif
  1243.     Exit
  1244. [Install-Update]
  1245.    set STF_VITAL        = ""
  1246.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  1247.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1248.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1249. ;   AddSectionFilesToCopyList Files-Dll $(!STF_SRCDIR) $(!STF_WINDOWSSYSPATH)
  1250.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1251.    CopyFilesInCopyList
  1252.    exit
  1253.  
  1254. [Install-Dll]
  1255.    set STF_VITAL        = ""
  1256.    AddSectionFilesToCopyList Files-Dll $(!STF_SRCDIR) $(!STF_WINDOWSSYSPATH)
  1257.    CopyFilesInCopyList
  1258.    exit
  1259.  
  1260. [Source Media Descriptions]
  1261. ;    1  = "HP Driver Support Disk"  , TAGFILE = disk1
  1262.      1  = "Windows NT DRVLIB"
  1263.  
  1264. [Signature]
  1265.     FileType = MICROSOFT_DRVLIB_FILE
  1266. [GetSignature]
  1267.     read-syms Signature
  1268.     return $(FileType)
  1269.  
  1270. [ProductType]
  1271. STF_PRODUCT  = Winnt
  1272. STF_PLATFORM = I386
  1273.  
  1274. [Files-Inf]
  1275. 1,    oemsetup.inf,     SIZE=30722,    RENAME=$(!UG_Filename)
  1276.  
  1277. [Files-J2585A]
  1278. 1, Hpddnd3.sys , SIZE=52736
  1279.  
  1280. [Files-J2585A]
  1281. 1, Hpddnd3.sys , SIZE=52736
  1282.  
  1283. [Files-J2585B]
  1284. 1, Hpddnd3.sys , SIZE=52736
  1285.  
  1286. [Files-J2973A]
  1287. 1, Hpddnd3.sys , SIZE=52736
  1288.  
  1289. [Files-J2970A]
  1290. 1, Hpddnd3.sys , SIZE=52736
  1291.  
  1292. [Files-Dll]
  1293. 1, Hpvg1dlg.dll,  SIZE=16896
  1294. 1, Hpvgp.hlp,     SIZE=4536
  1295.  
  1296. [LanguagesSupported]
  1297.     ENG
  1298.  
  1299. [OptionsTextENG]
  1300.     J2585A = "HP DeskDirect (J2585A) 10/100 PCI LAN Adapter"
  1301.     J2585B = "HP DeskDirect (J2585B) 10/100 PCI LAN Adapter"
  1302.     J2973A = "HP DeskDirect (J2973A) 10BaseT PCI LAN Adapter"
  1303.     J2970A = "HP DeskDirect (J2970A) 10BaseT/2 PCI LAN Adapter"
  1304.  
  1305. [BusMFileConstantsENG]
  1306. ProductSoftwareDescription = "HP DeskDirect 10/100 LAN Adapter Driver"
  1307. [SlaveFileConstantsENG]
  1308. ProductSoftwareDescription = "HP DeskDirect 10/100 LAN Adapter Driver"
  1309. [FileConstantsENG]
  1310. ProCaption   = "Windows NT Setup"
  1311. ProCancel    = "Cancel"
  1312. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  1313.                "Are you sure you want to cancel copying files?"
  1314. ProCancelCap = "Network Setup Message"
  1315. ProText1     = "Copying:"
  1316. ProText2     = "To:"
  1317.  
  1318. J2585AIOFunctionTitle    = "HP DeskDirect (J2585A) PCI LAN Adapter Setup"
  1319. J2585BIOFunctionTitle    = "HP DeskDirect (J2585B) PCI LAN Adapter Setup"
  1320. J2973AIOFunctionTitle    = "HP DeskDirect (J2973A) PCI LAN Adapter Setup"
  1321. J2970AIOFunctionTitle    = "HP DeskDirect (J2970A) PCI LAN Adapter Setup"
  1322. ProductSoftwareDescription = "HP DeskDirect 10/100 LAN Adapter Driver"
  1323. ProductHardwareJ2585AIODescription = "HP DeskDirect (J2585A) 10/100 PCI LAN Adapter"
  1324. ProductHardwareJ2585ADescription = "HP DeskDirect (J2585A) 10/100 PCI LAN Adapter"
  1325. ProductHardwareJ2585BIODescription = "HP DeskDirect (J2585B) 10/100 PCI LAN Adapter"
  1326. ProductHardwareJ2585BDescription = "HP DeskDirect (J2585B) 10/100 PCI LAN Adapter"
  1327. ProductHardwareJ2973AIODescription = "HP DeskDirect (J2973A) 10BaseT PCI LAN Adapter"
  1328. ProductHardwareJ2973ADescription = "HP DeskDirect (J2973A) 10BaseT PCI LAN Adapter"
  1329. ProductHardwareJ2970AIODescription = "HP DeskDirect (J2970A) 10BaseT/2 PCI LAN Adapter"
  1330. ProductHardwareJ2970ADescription = "HP DeskDirect (J2970A) 10BaseT/2 PCI LAN Adapter"
  1331. FunctionTitle   = $($(Option)FunctionTitle)
  1332. IOBaseAddrList = ^(IOBaseAddrChoices, 1)
  1333. IOBaseAddrValues = ^(IOBaseAddrChoices, 2)
  1334. J2585AAdapterType = 4
  1335. J2585AIOAdapterType = 3
  1336. J2585BAdapterType = 4
  1337. J2585BIOAdapterType = 3
  1338. J2973AAdapterType = 4
  1339. J2973AIOAdapterType = 3
  1340. J2970AAdapterType = 4
  1341. J2970AIOAdapterType = 3
  1342. J2585AIOCombo1Label = "Base I/&O Address:"
  1343. AdapterTypeValue = $($(Option)AdapterType)
  1344. J2585AIOBaseAddress = "IoBaseAddress"
  1345. J2585AIOIOBaseAddrDefault = 9
  1346. [DialogConstantsENG]
  1347. Help        = "Help"
  1348. Exit        = "Cancel"
  1349. OK          = "OK"
  1350. HelpContext = ""
  1351. Continue    = "Continue"
  1352. Cancel      = "Cancel"
  1353. [FileDependentDlgENG]
  1354. DlgType = "RadioCombination"
  1355. DlgTemplate = "HPVG"
  1356. Caption = $(FunctionTitle)
  1357. DlgText = "Please select values for the following fields:"
  1358. Combo1Label = $($(Option)Combo1Label)
  1359. Combo1List = $(IOBaseAddrList)
  1360. Combo1Out  = $(IOBaseAddrValue)
  1361. ComboListItemsIn  = {Combo1List}
  1362. ComboListItemsOut = {Combo1Out}
  1363. EditTextIn = ""
  1364. EditTextLim = ""
  1365. CBOptionsGreyed = {}
  1366. NotifyFields = {NO, NO}
  1367. ;Help Stuff
  1368. MinID = 1
  1369. MaxID = 6000
  1370. HelpContext = 5100
  1371.